package com.hksj.Intelligentmanagement.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @ClassName SurgicalInfoDTO
 * @Description TODO
 * @Author @陈章
 * @Date 2023/5/6 17:35
 * @Version 1.0
 */
@Data
public class SurgicalInfoDTO {

    private String id;

    @ApiModelProperty("医生姓名")
    @NotBlank(message = "医生姓名不能为空")
    private String doctorName;

    @ApiModelProperty("患者姓名")
    @NotBlank(message = "患者姓名不能为空")
    private String patientName;

    @ApiModelProperty("患者编号")
    @NotBlank(message = "患者编号不能为空")
    private String idCard;

    @ApiModelProperty("患者姓名{0为女生，1为男生}")
    @NotNull(message = "患者姓名不能为空")
    private int sex;

    @ApiModelProperty("患者年龄")
    @NotNull(message = "患者年龄不能为空")
    private int age;

    @ApiModelProperty("手术信息")
    @NotBlank(message = "手术信息不能为空")
    private String surgicalInfo;

    @ApiModelProperty("麻醉方式")
    @NotBlank(message = "麻醉方式不能为空")
    private String anaesthesiaType;

    @ApiModelProperty("手术预计开始时间")
    private String estimateStartTime;

    @ApiModelProperty("手术预计结束时间")
    private String estimateEndTime;

    @ApiModelProperty("手术预计结束时间刻度")
    private String shortEstimateStartTime;

    @ApiModelProperty("手术预计结束时间刻度")
    private String shortEstimateEndTime;

    @ApiModelProperty("手术开始时间")
    @NotBlank(message = "手术开始时间不能为空")
    private String shortStartTime;

    @ApiModelProperty("手术结束时间")
    @NotBlank(message = "手术结束时间不能为空")
    private String shortEndTime;

    @ApiModelProperty("手术开始时间")
    private String startTime;

    @ApiModelProperty("手术结束时间")
    private String endTime;

    @ApiModelProperty("手术协助人")
    @NotEmpty(message = "手术协助人不能为空")
    private List<AnesthesiaInfoDTO> list;
}
